class GMCWTypeModel {
  int? status;
  String? msg;
  List<GMCWTypeData>? data;

  GMCWTypeModel({this.status, this.msg, this.data});

  GMCWTypeModel.fromJson(Map<String, dynamic> json) {
    status = json['status'];
    msg = json['msg'];
    if (json['data'] != null) {
      data = <GMCWTypeData>[];
      json['data'].forEach((v) {
        data!.add(GMCWTypeData.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['status'] = status;
    data['msg'] = msg;
    if (this.data != null) {
      data['data'] = this.data!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class GMCWTypeData {
  String? head;
  double? score;
  String? outline;
  int? father;
  String? name;
  int? id;
  String? state;
  List<GMCWTypeData>? list;

  GMCWTypeData(
      {this.head,
      this.score,
      this.outline,
      this.father,
      this.name,
      this.id,
      this.state,
      this.list});

  GMCWTypeData.fromJson(Map<String, dynamic> json) {
    head = json['head'];
    score = json['score'];
    outline = json['outline'];
    father = json['father'];
    name = json['name'];
    id = json['id'];
    state = json['state'];
    if (json['list'] != null) {
      list = <GMCWTypeData>[];
      json['list'].forEach((v) {
        list!.add(GMCWTypeData.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['head'] = head;
    data['score'] = score;
    data['outline'] = outline;
    data['father'] = father;
    data['name'] = name;
    data['id'] = id;
    data['state'] = state;
    if (list != null) {
      data['list'] = list!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

